<style tyle="text/css">
  .modal-lg {
      width: 60%;
  }
</style>
<div class="modal-header">
  <h4 class="modal-title">选择招徕产品</h4>
</div>
<div class="modal-body">
  <div style="max-height: 360px; overflow:auto">

    <!-- 网络太差, 画圈等 -->
    <h3 class="col-sm-12 text-center" ng-show="searchform.loading">
      <i class="fa fa-spin fa-spinner hide show inline"/>
    </h3>
    <div ng-show="!searchform.loading">
      <h3 class="col-sm-12 text-center" ng-show="saleList.length == 0">
        无可添加招徕奖励的产品
      </h3>

      <div class="col-sm-5" ng-show="saleList.length != 0" style="margin-bottom: 10px">
        <div class="input-group">
          <div class="input-group-btn">
            <span class="btn btn-default">产品名称</span>
          </div>
          <input type="text" class="form-control" ng-model="sale_name" placeholder="输入关键字筛选产品">
        </div>
      </div>
      <table class="table table-striped table-bordered" style="margin-bottom:0px" ng-show="saleList.length != 0">
        <thead>
          <tr>
            <th style="width: 5%; text-align: center;">
              <label class="i-checks m-b-none">
                <input type="checkbox" ng-click="selectAll(all)" ng-model="all"><i></i>
              </label>
            </th>
            <th style="width: 30%; text-align: center;">产品名称</th>
            <th style="width: 23%; text-align: center;">产品编号</th>
            <th style="width: 27%; text-align: center;">供应商</th>
            <th style="width: 15%; text-align: center;">产品类型</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="info in saleList | filter: {'name': sale_name}">
            <td class="text-center">
              <label class="i-checks m-b-none">
                <input type="checkbox" ng-model="info.check"><i></i>
              </label>
            </td>
            <td>{{info.name}}</td>
            <td class="text-center">{{info.code}}</td>
            <td>{{info.create_company_name}}</td>
            <td class="text-center">{{info.sale_type=='J'?'景区':'酒店'}}</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
  <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>

